package de.htw.praxisprojekt.data.draw;

import java.awt.Graphics2D;

import de.htw.praxisprojekt.Vector2D;

public class DrawRing extends DrawObject{

	private Vector2D point=new Vector2D();
	private float radius=0;

	public DrawRing(Vector2D point,float radius){
		this.point.set(point);
		this.radius=radius;
	}

	@Override
	public void draw(Graphics2D g2d){
		g2d.setColor(color);
		int height=g2d.getClipBounds().height;
		g2d.drawOval((int)(point.getX()-radius/2),(int)(height-point.getY()-radius/2),(int)radius,(int)radius);
	}
}
